package com.yfp.operation.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 *
 * @version 1.0
 * @date 2025-03-07 11:32
 */
@Data
public class IntegralHistoryVO {

    /**
     * 订单编号
     */
    @Schema(description = "订单编号")
    private String orderId;

    /**
     * 操作类型 1收入2支出
     */
    @Schema(description = "操作类型 1收入2支出")
    private Integer type;

    /**
     * 操作时间
     */
    @Schema(description = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

    /**
     * 相关商品
     */
    @Schema(description = "相关商品")
    private String comboName;

    /**
     * 积分变动
     */
    @Schema(description = "积分变动")
    private Integer integral;

    /**
     * 剩余积分
     */
    @Schema(description = "剩余积分")
    private Integer surplusIntegral;

    /**
     * 状态1完成订单2已撤销
     */
    @Schema(description = "状态1完成订单2已撤销")
    private Integer status;

}
